ADP\BaseVersion\Includes\CartProcessor\CartProcessor D

Total Complexity 218
Dependencies 43
Dependents 8
Total lines 1,520
Lines of code 985
Logical lines of code 618
Comment lines 237
Methods 34
Properties 26

Methods 34

Method Rating Maintainability Complexity Lines of code
process()
D
13
69 307
getAmountSavedOnlyBePricing()
A
42 15 50
addCommonItems()
A
36 12 93
__construct()
A
39 13 64
eliminateClones()
A
43 12 54
calculateFreeProductsMapping()
A
42 10 51
postApplyProcess()
A
49 8 33
getProductPriceDependsOnPriceMode()
A
50 8 26
addFreeItems()
A
44 6 48
insertRegularTotals()
S
54 6 20
addNoticeIfNotExists()
S
58 6 15
replaceCouponSuccessNotices()
S
51 5 28
deleteAllPricingDataFromCart()
S
54 5 20
notifyAboutAddedFreeItems()
S
61 5 12
processFreeItems()
S
58 4 16
syncCartItemHashes()
S
63 5 10
isAdpCoupon()
S
62 4 10
normalizeCart()
S
63 4 10
processAutoAddItems()
S
61 3 12
addNoticeAddedFreeProduct()
S
58 1 16
filterCheckCartItemExistenceBeforeUpdate()
S
70 2 6
sanitizeWcCart()
S
68 2 7
applyTotals()
S
69 2 7
withContext()
S
62 1 13
installActionFirstProcess()
S
62 1 13
addNoticeRemovedFreeProduct()
S
62 1 11
getWcNoFilterWorker()
S
82 1 3
setProductPriceDependsOnPriceMode()
S
80 1 3
getListener()
S
82 1 3
installActionFirstProcess_Blocks()
S
82 1 3
modifySession()
S
66 1 9
modifySessionIfCartIsEmpty()
S
73 1 5
isAdpCouponCode()
S
75 1 4
getCommonItemsFromCart()
S
79 1 3